Reporting
Console Reporter
The default reporter. Prints results to console.
Live HTML Reporter
Prints results to an html page. Support images. Screenshots on error.
1: 2: 3: |
|
TeamCity Reporter
Prints special outputs that are compatible with team city.
1: 2: 3: 4: 5: |
|
JUnit Reporter
Produces test results in basic JUnit format. Compatible with CircleCI.
1: 2: 3: |
|
namespace canopy
module configuration
from canopy
from canopy
module types
from canopy
from canopy
namespace System
module reporters
from canopy
from canopy
val mutable reporter : IReporter
Multiple items
type LiveHtmlReporter =
interface IReporter
new : browser:BrowserStartMode * driverPath:string -> LiveHtmlReporter
new : browser:BrowserStartMode * driverPath:string * ?driverHostName0:string * ?hideCommandPromptWindow0:bool * ?pinBrowserRight0:bool -> LiveHtmlReporter
member commonFail : ctx:string -> ex:Exception -> id:string -> ss:byte [] -> url:string -> unit
member failWithContext : ctx:string -> ex:Exception -> id:string -> ss:byte [] -> url:string -> unit
member browser : IWebDriver
member reportPath : string option
member reportTemplateUrl : string
member js : script:string -> obj
member passWithContext : ctx:string -> id:string -> unit
...
--------------------
new : browser:BrowserStartMode * driverPath:string -> LiveHtmlReporter
new : browser:BrowserStartMode * driverPath:string * ?driverHostName0:string * ?hideCommandPromptWindow0:bool * ?pinBrowserRight0:bool -> LiveHtmlReporter
type LiveHtmlReporter =
interface IReporter
new : browser:BrowserStartMode * driverPath:string -> LiveHtmlReporter
new : browser:BrowserStartMode * driverPath:string * ?driverHostName0:string * ?hideCommandPromptWindow0:bool * ?pinBrowserRight0:bool -> LiveHtmlReporter
member commonFail : ctx:string -> ex:Exception -> id:string -> ss:byte [] -> url:string -> unit
member failWithContext : ctx:string -> ex:Exception -> id:string -> ss:byte [] -> url:string -> unit
member browser : IWebDriver
member reportPath : string option
member reportTemplateUrl : string
member js : script:string -> obj
member passWithContext : ctx:string -> id:string -> unit
...
--------------------
new : browser:BrowserStartMode * driverPath:string -> LiveHtmlReporter
new : browser:BrowserStartMode * driverPath:string * ?driverHostName0:string * ?hideCommandPromptWindow0:bool * ?pinBrowserRight0:bool -> LiveHtmlReporter
type BrowserStartMode =
| Firefox
| FirefoxWithPath of string
| FirefoxWithUserAgent of string
| FirefoxWithPathAndTimeSpan of string * TimeSpan
| FirefoxWithProfileAndTimeSpan of FirefoxProfile * TimeSpan
| FirefoxWithOptions of FirefoxOptions
| FirefoxHeadless
| IE
| IEWithOptions of InternetExplorerOptions
| IEWithOptionsAndTimeSpan of InternetExplorerOptions * TimeSpan
...
| Firefox
| FirefoxWithPath of string
| FirefoxWithUserAgent of string
| FirefoxWithPathAndTimeSpan of string * TimeSpan
| FirefoxWithProfileAndTimeSpan of FirefoxProfile * TimeSpan
| FirefoxWithOptions of FirefoxOptions
| FirefoxHeadless
| IE
| IEWithOptions of InternetExplorerOptions
| IEWithOptionsAndTimeSpan of InternetExplorerOptions * TimeSpan
...
union case BrowserStartMode.Chrome: BrowserStartMode
type IReporter =
interface
abstract member contextEnd : string -> unit
abstract member contextStart : string -> unit
abstract member describe : string -> unit
abstract member fail : Exception -> string -> byte [] -> string -> unit
abstract member pass : string -> unit
abstract member quit : unit -> unit
abstract member setEnvironment : string -> unit
abstract member skip : string -> unit
abstract member suggestSelectors : string -> string list -> unit
abstract member suiteBegin : unit -> unit
...
end
interface
abstract member contextEnd : string -> unit
abstract member contextStart : string -> unit
abstract member describe : string -> unit
abstract member fail : Exception -> string -> byte [] -> string -> unit
abstract member pass : string -> unit
abstract member quit : unit -> unit
abstract member setEnvironment : string -> unit
abstract member skip : string -> unit
abstract member suggestSelectors : string -> string list -> unit
abstract member suiteBegin : unit -> unit
...
end
Multiple items
type TeamCityReporter =
interface IReporter
new : ?logImagesToConsole:bool -> TeamCityReporter
--------------------
new : ?logImagesToConsole:bool -> TeamCityReporter
type TeamCityReporter =
interface IReporter
new : ?logImagesToConsole:bool -> TeamCityReporter
--------------------
new : ?logImagesToConsole:bool -> TeamCityReporter
Multiple items
type JUnitReporter =
interface IReporter
new : resultFilePath:string -> JUnitReporter
--------------------
new : resultFilePath:string -> JUnitReporter
type JUnitReporter =
interface IReporter
new : resultFilePath:string -> JUnitReporter
--------------------
new : resultFilePath:string -> JUnitReporter